package com.example.day07;

public class StringBuielderDemo {
    public static void main(String[] args) {

        StringBuilder stringBuilder=new StringBuilder();
        System.out.println(stringBuilder.capacity());  //默认容量16
        stringBuilder.append("11111111111111111111111111111111324234");
        stringBuilder.append("1111111");
        System.out.println(stringBuilder.length());

        StringBuilder s=new StringBuilder("pythonds");
        s.deleteCharAt(2);
//        System.out.println(s);

        s.delete(1,2);
        System.out.println(s);

        System.out.println(s.reverse());
    }
}
